package com.lpj.base.id.generator.service.impl.provider;

import com.lpj.base.id.generator.service.impl.bean.IdMeta;

public interface MachineIdProvider {
    long MODIFIED_INTERVAL = 1000 * 60  * 60;
    long MODIFIED_INTERVAL_CACHE = MODIFIED_INTERVAL + 20;

    long getMachineId(IdMeta idMeta);

    void setBadMachineId(long machineId, long lastTimestamp);
}
